<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="步骤9：登录iSCSI启动器">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="vmware_gud_0015.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="vmwate_gud_0110">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>步骤9：登录iSCSI启动器</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="vmwate_gud_0110"></a><a name="vmwate_gud_0110"></a>

<h1 class="topictitle1">步骤9：登录iSCSI启动器</h1>
<div><p>在以太网组网场景下，如果想要使用SAN传输模式或基于OceanStor Dorado LUN建立的Datastore的虚拟机磁盘需要使用存储层备份模式时，请参考本章节在代理主机上登录iSCSI启动器。</p>
<div class="section"><h4 class="sectiontitle">前提条件</h4><p>代理主机已安装iSCSI启动器（iscsi-initiator-utils）。具体操作请参见<span>《OceanProtect DataBackup 1.5.0-1.6.0 ProtectAgent安装指南》</span>中的“<span>安装iSCSI启动器（适用于VMware）</span>”章节。</p>
</div>
<div class="section" id="vmwate_gud_0110__section495264112597"><h4 class="sectiontitle">操作步骤</h4><p id="vmwate_gud_0110__p125071013014">以下操作以生产存储设备为OceanStor Dorado为例：</p>
<ol id="vmwate_gud_0110__ol166880319118"><li id="vmwate_gud_0110__li768819316116"><a name="vmwate_gud_0110__li768819316116"></a><a name="li768819316116"></a><span>登录ESXi Datastore对应的生产存储设备，查询iSCSI逻辑端口，获取逻辑端口IP。</span><p><ol type="a" id="vmwate_gud_0110__ol7935174819810"><li id="vmwate_gud_0110__li59351948085">登录DeviceManager。</li><li id="vmwate_gud_0110__li1051415181795">选择“服务 &gt; 网络 &gt; 逻辑端口”。</li><li id="vmwate_gud_0110__li785518500912">在信息显示区，查询<span class="uicontrol" id="vmwate_gud_0110__uicontrol1119815346109">“数据协议”</span>为<span style="color:#282B33;">iSCSI</span>的逻辑端口，记录逻辑端口IP。</li></ol>
</p></li><li id="vmwate_gud_0110__li249019343218"><span>在代理主机上，依次执行以下命令，登录iSCSI启动器。</span><p><pre class="screen" id="vmwate_gud_0110__screen1594352115">iscsiadm -m discovery -t st -p <em id="vmwate_gud_0110__i135193711122">IP</em></pre>
<pre class="screen" id="vmwate_gud_0110__screen426175515418">iscsiadm -m node -l -p <em id="vmwate_gud_0110__i118665577419">IP</em></pre>
<div class="note" id="vmwate_gud_0110__note14972085814"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p id="vmwate_gud_0110__p89721781284">命令中的<em id="vmwate_gud_0110__i1264917214815">IP</em>请根据<a href="#vmwate_gud_0110__li768819316116">1</a>中获取的实际逻辑端口IP替换。</p>
</div></div>
<p id="vmwate_gud_0110__p1508137853">回显类似如下：</p>
<p id="vmwate_gud_0110__p628692817115"><span><img id="vmwate_gud_0110__image7487830152113" src="zh-cn_image_0000001839267077.png"></span></p>
</p></li><li id="vmwate_gud_0110__li88571715310"><span>在代理主机上，执行以下命令，查看session信息，确认生产存储设备的IQN状态在线。</span><p><pre class="screen" id="vmwate_gud_0110__screen661813118212">iscsiadm -m session</pre>
<p id="vmwate_gud_0110__p18474332824">如果回显包含逻辑端口信息，表示IQN状态在线。</p>
<p id="vmwate_gud_0110__p64391540131719"><span><img id="vmwate_gud_0110__image117131934181514" src="zh-cn_image_0000002132525593.png"></span></p>
</p></li><li id="vmwate_gud_0110__li1140194514210"><a name="vmwate_gud_0110__li1140194514210"></a><a name="li1140194514210"></a><span>在代理主机上，执行以下命令，获取代理主机的IQN。</span><p><pre class="screen" id="vmwate_gud_0110__screen1161016556219">cat /etc/iscsi/initiatorname.iscsi </pre>
<p id="vmwate_gud_0110__p1074682119416">回显类似如下：</p>
<p id="vmwate_gud_0110__p2078715245612"><span><img id="vmwate_gud_0110__image320122515616" src="zh-cn_image_0000002096956652.png"></span></p>
</p></li><li id="vmwate_gud_0110__li1868713566315"><span>在ESXi Datastore对应的生产存储设备上，确认代理主机的IQN状态是否在线。</span><p><ol type="a" id="vmwate_gud_0110__ol6119242222"><li id="vmwate_gud_0110__li15113246221">登录DeviceManager。</li><li id="vmwate_gud_0110__li94481632162213">选择“服务 &gt; 块服务 &gt; 主机组 &gt; 启动器 &gt; iSCSI”。</li><li id="vmwate_gud_0110__li119268344233">在<span class="uicontrol" id="vmwate_gud_0110__uicontrol13515191112248">“iSCSI”</span>页签，查询<a href="#vmwate_gud_0110__li1140194514210">4</a>获取的IQN，确认IQN状态是否为在线。</li></ol>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="vmware_gud_0015.html">备份VMware虚拟机</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>